import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login'
import Main from '../views/Main'
import Header from '../views/Header'
import Home from '../views/Home'
import Book from '../views/book/Pbook'
import Text from "../views/text/Text"
import User from "../components/user/Update_user"
import Calendar from "@/views/calendar/Calendar";


//测试用
import Select from "@/components/book/Select_list"



// 20210304   zaq   增加日程、说说、个人信息路由

Vue.use(VueRouter)

const routes = [
  {
    //测试用
    path: '/select',
    name: Select,
    component: Select
  },
  {
    // 日程
    path: '/calendar',
    name:Calendar,
    component: Calendar
  },

  {
    // 个人信息
    path:'/user',
    name:User,
    component: User
  },
  {
    // 说说
    path: '/text',
    name:Text,
    component: Text
  },
  {
    // 账簿导航
    path: '/book',
    name:Book,
    component: Book
  },
  {
    // 主界面
    path: '/home',
    name:'Home',
    component: Home
  },
  {
    // 导航栏
    path: '/header',
    name: 'Header',
    component: Header
  },
  {
    // 暂时没用
    path: '/main',
    name: 'Main',
    component: Main
  },
  {
    // 登录框
    path: '/login',
    name: 'Login',
    component: Login
  },

  {
    // 暂时没用
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
